<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*
		{
			text-align:center !important;
		margin:0;
		padding:0;
		border:0;
		}

body
		{
		font-family:Verdana, Arial, 'ËÎÌå';
		font-size:12px;
		}

strong
{
		font-family:'Î¢ÈíÑÅºÚ';
		font-size:14px;
		color:#000;
		font-weight:800;
}

body#homefirst div#maincontent, div#maincontent h1, div#maincontent h2, div#sidebar div#ad h2
		{
		font-family:'Î¢ÈíÑÅºÚ';
		}

pre, pre code, div#maincontent input, div#maincontent select, div#maincontent textarea
		{
		font-family:"Courier New", Courier, monospace;
		}

h2, h3, h4, h5, h6, em
		{
		font-weight: bold;
		}

p.note span, p.important span, p.tip span, p.inherited, p.inherited span, p.gototop, .html5_new_note span
		{
		font-weight: bold;
		}

body#homesecond div#navsecond li
		{
		font-weight:bold;
		}

table.dataintable {
	margin-top:10px;
	border-collapse:collapse;
	border:1px solid #aaa;
	width:100%;
	}

table.dataintable th {
	vertical-align:baseline;
	padding:5px 15px 5px 5px;
	background-color:#d5d5d5;
	border:1px solid #aaa;
	text-align:left;
	}

table.dataintable td {
	vertical-align:text-top;
	padding:5px 15px 5px 5px;
	background-color:#efefef;
	border:1px solid #aaa;
	}

table.dataintable pre {
	width:auto;
	margin:0;
	padding:0;
	border:0;
	background-color:transparent;
	}

table.dataintable p {margin:0 0 2px 0;}

div#maincontent table.dataintable ul, div#maincontent table.dataintable li {
	list-style-type:none;
	margin:0;
	padding:0;
	}

table.dataintable td em
		{
		color:#0000ff;
		font-weight:normal;
		}
	
table.dataintable .table_value {color:#0F93D2;}

.no_wrap {white-space:nowrap;}

div#maincontent table.dataintable ul.listintable {
	margin:20px;
	padding:0;
	}

div#maincontent table.dataintable ul.listintable  li{
	list-style-type:disc;
	}


table.dataintable td.html5_new {
	background: #EFEFEF url(/i/site_table_bg.gif) top right no-repeat;
	}
</style>
</head>

<body>
<table class="dataintable">
  <tbody>
    <tr>
      <th colspan="3">事件监听</th>
    </tr>
    <tr>
    <th>模块</th>
    <th>类型</th>
    <th>描述</th>
  </tr>

    <tr>
      <td>systeam_initialize</td>
      <td><p>bool</p></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>systeam_initialize_time</td>
      <td>string</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>device_connection</td>
      <td>bool</td>
      <td>&nbsp;</td>
    </tr>

  <tr>
    <td class="html5_new">device_channels</td>
    <td>int</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>datas_of_phone</td>
    <td>string[]</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>datas_of_record</td>
    <td>string[]</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>listener_tcp</td>
    <td>TcpListener</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td class="html5_new">listener_udp</td>
    <td>UdpClient</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>clients</td>
    <td>Dictionary&lt;string, IWebSocketConnection&gt;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>clients_keys</td>
    <td>Dictionary&lt;IWebSocketConnection, string&gt;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>thread</td>
    <td>Thread</td>
    <td>&nbsp;</td>
  </tr>
</tbody></table>

<table class="dataintable">
  <tbody>
    <tr>
      <th colspan="6">事件监听</th>
    </tr>
    <tr>
      <th>模块</th>
    <th>方法名</th>
    <th>参数</th>
    <th>返回值</th>
    <th>描述</th>
    <th>demo</th>
  </tr>

    <tr>
      <td>主程序</td>
      <td>构造函数</td>
      <td><p>&nbsp;</p></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="5">监听</td>
      <td>Listener</td>
      <td>[string] listen</td>
      <td>void</td>
      <td>只支持传入TCP/UDP/WEB</td>
      <td>Listener('WEB');</td>
    </tr>
    <tr>
      <td>Listens_TCP</td>
      <td>&nbsp;</td>
      <td>void</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>

  <tr>
    <td class="html5_new">Listens_UDP</td>
    <td>&nbsp;</td>
    <td>void</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td><span class="html5_new">Listens_WEB</span></td>
    <td>&nbsp;</td>
    <td>void</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Response</td>
    <td>[string] message</td>
    <td>[string] data</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td rowspan="3">设备</td>
    <td>Device_Connect</td>
    <td>&nbsp;</td>
    <td>[bool] device_connection</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Device_Disconnect</td>
    <td>&nbsp;</td>
    <td>[bool] device_connection</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>Device_Reconnect</td>
    <td>&nbsp;</td>
    <td>[bool] device_connection</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td rowspan="10" class="html5_new">指令</td>
    <td class="html5_new">Command_Call</td>
    <td><p>[short] channel</p>
      <p>[string] phone</p></td>
    <td>[string] phone</td>
    <td>执行 Command(channel, phone, soft);</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>Command_Call</td>
    <td><p>[short] channel</p>
      <p>[string] phone</p>
      <p>[bool] soft</p></td>
    <td>[string] phone</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Income</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Income_Missed</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Local_Hook</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Local_Hangup</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Remote_Hook</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Remote_Hangup</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Record</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Command_Record_Done</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</tbody></table>

<table class="dataintable">
  <tbody>
    <tr>
      <th colspan="4">Event</th>
    </tr>
    <tr>
    <th>action</th>
    <th>动作</th>
    <th>值</th>
    <th>描述</th>
  </tr>

    <tr>
      <td>local.hook</td>
      <td><p>&nbsp;</p></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>local.hangup</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>remote.hook</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>

  <tr>
    <td class="html5_new">remote.hangup</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>call.sent</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>call.income</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>call.miss</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td class="html5_new">line.busy</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>line.ring</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</tbody></table>
<table class="dataintable">
  <tbody>
    <tr>
      <th colspan="4">Response</th>
    </tr>
    <tr>
    <th>模块</th>
    <th>动作</th>
    <th>值</th>
    <th>描述</th>
  </tr>

    <tr>
      <td>public.get.device.info</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>public.get.device.status</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>public.system.connect</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>public.system.disconnect</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>public.system.reconnect</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>make.call</td>
      <td><p>&nbsp;</p></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>make.hook</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>make.hangup</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>

  <tr>
    <td class="html5_new">is.on.call</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</tbody></table>
</body>
</html>
